#include<stdio.h>
   int main()
{  int a=0,b=0,c=0;
   scanf("%d%d%d",&a, &b, &c);  /*从键盘输入3个数*/
   printf("排序前: %d, %d, %d\n", a, b, c);
  /* int t,h,v;
   if (a>b) {
	   t = b;b = t;   }
   else {t = a;a = b;b = t;}
   if (a>c) {
	  h = c ;
	  c = h ;}
   else { h = a;a = c;c = h;}

   if (b > c) { 
	   b = b;
	   c = c;}
   else {v = b;b = c;c = v;}*/
   int t=0;
   if (a<b)
   {t = a;a = b; b = t;}
   if (a<c)
   {  t=a;a=c;c=t;}
   if (b<c)
   {   t=b;b=c;c=t;}
   printf("排序后: %d, %d, %d\n", a, b, c);
   return 0;
}


